package com.xxxx.seckill.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;
import lombok.ToString;

/**
 * @Author:王亚栋
 * @Date:2023/2/12 17:52
 * @Version:1.0
 */
@Getter
@AllArgsConstructor
@ToString
public enum  RespBeanEnum {

    SUCCESS(200,"SUCCESS"),
    ERROR(500,"服务器异常"),
    LOGIN_ERROR(500210,"用户或密码不正确！"),
    MOBILE_ERROR(500211,"手机号格式不正确！"),
    USER_NOT_EXIST_MOBILE(500212,"通过电话号查询用户失败！"),
    PASSWORD_ERROR(500213,"用户密码不正确！"),
    BIND_ERROR(500214,"参数校验异常！"),
    //秒杀模块错误
    SECKILL_STOCK_NOT_ENOUGHT(500215,"秒杀商品库存不足!"),
    //重复提交秒杀订单
    REPEAR_SECILL_ORDER(500216,"重复提交秒杀订单！");

    private final Integer code;
    private final String message;

}
